package com.edu.mybatis.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee implements Serializable {
    private Integer employeeId;
    private String firstName;
    private String email;
    private Integer departmentId;

    private Department department;

    public Employee(Integer employeeId, String firstName, String email, Integer departmentId) {
        this.employeeId = employeeId;
        this.firstName = firstName;
        this.email = email;
        this.departmentId = departmentId;
    }
}
